#version 330 core
layout (location = 0)in vec3 aPos;		// 位置变量的属性位置值为 0 
layout (location = 1)in vec3 aColor;	// 颜色变量的属性位置值为 1
layout (location = 2)in vec2 aTexCoord;	// 坐标变量的属性位置值为 3

out vec3 ourColor;	// 向片段着色器输出一个颜色
out vec2 TexCoord;	// 向片段着色器输出一个坐标

uniform mat4 translate;
uniform mat4 rotate;
uniform mat4 projection;

void main()
{
	gl_Position = projection * translate * rotate * vec4(aPos.x, aPos.y, aPos.z, 1.0);
	ourColor = aColor;
	TexCoord = aTexCoord;
}
